<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<link href="../public/admin/images/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../public/admin/javascript/jquery.min.js"></script>
<?php
include '../config/mysql.php';
if(!$_SESSION['id']){
    error('login.php','请先登录！');
}
?>
<script type="text/javascript">
$(function(){
	//setMenuHeight
	$('.menu').height($(window).height()-51-27-26);
	$('.sidebar').height($(window).height()-51-27-26);
	$('.page').height($(window).height()-51-27-26);
	$('.page iframe').width($(window).width()-15-168);
	//menu on and off
	$('.btn').click(function(){
		$('.menu').toggle();
		if($(".menu").is(":hidden")){
			$('.page iframe').width($(window).width()-15+5);
			}else{
			$('.page iframe').width($(window).width()-15-168);
				}
		});
	//
	$('.subMenu a[href="#"]').click(function(){
		$(this).next('ul').toggle();
		return false;
		});
})
</script>
</head>
<body>
<div id="wrap">
	<div id="header">
    <div class="logo fleft"> </div>
    <a class="logout fright" href="usercheck.php?type=logout"> </a>
    <div class="clear"></div>
    <div class="subnav">
    	<div class="subnavLeft fleft"></div>
        <div class="fleft"></div>
        <div class="subnavRight fright"></div>
    </div>
    </div><!--#header -->
    <div id="content">
    <div class="space"></div>
    <div class="menu fleft">
    	<ul>
        	<li class="subMenuTitle">栏目</li>
            <li class="subMenu">
                <a href="#">用户管理</a>
                <ul>
                    <li><a href="userlist.php" target="right">用户管理</a></li>
                </ul>
            </li>
            <li class="subMenu">
                <a href="#">图书分类</a>
                <ul>
                    <li><a href="classlist.php" target="right">分类</a></li>
                    <li><a href="classadd.php" target="right">添加分类</a></li>
                </ul>
            </li>
            <li class="subMenu">
                <a href="#">图书管理</a>
                <ul>
                    <li><a href="goodslist.php" target="right">图书列表</a></li>
                    <li><a href="goodsadd.php" target="right">添加图书</a></li>
                </ul>
            </li>

            <li class="subMenu">
                <a href="#">订单管理</a>
                <ul>
                    <li><a href="dd.php" target="right">订单列表</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <div class="sidebar fleft"><div class="btn"></div></div>
    <div class="page">
    <iframe width="100%" scrolling="auto" height="100%" frameborder="false" allowtransparency="true" style="border: medium none;" src="userlist.php" id="rightMain" name="right"></iframe>
    </div>
    </div><!--#content -->
    <div class="clear"></div>
    <div id="footer"></div><!--#footer -->
</div><!--#wrap -->
<div style="text-align:center;">

</div>
</body>
</html>
